﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace th21
{
    class NhanVien
    {
        private String Hoten;
        private String Namsinh;
        private String Gioitinh;
        private long Socmnd;

        public String HOTEN
        {
            get { return this.Hoten; }
            set { this.Hoten = value; }
        }
        public String NAMSINH
        {
            get { return this.Namsinh; }
            set { this.Namsinh = value; }
        }
        public String GIOITINH
        {
            get { return this.Gioitinh; }
            set { this.Gioitinh = value; }
        }
        public long SOCMND
        {
            get { return this.Socmnd; }
            set { this.Socmnd = value; }
        }

        public NhanVien()
        {
            this.Hoten = null;
            
        }

        public NhanVien(String HT, String NS, String GT, long CM)
        {
            this.Hoten = HT;
            this.Namsinh = NS;
            this.Gioitinh = GT;
            this.Socmnd = CM;
        }

        public void Nhap()
        {
            Console.Write("Ho ten: ");
                this.Hoten=Console.ReadLine();
            Console.Write("Nam sinh: ");
                this.Namsinh=Console.ReadLine();
            Console.Write("Gioi tinh: ");
                this.Gioitinh=Console.ReadLine();
                Console.Write("So chung minh nhan dan: ");
                this.Socmnd=long.Parse(Console.ReadLine());
        }

        

        public void Xuat()
        {
            Console.WriteLine("Ho ten: " + this.Hoten);
            Console.WriteLine("Nam sinh: " + this.Namsinh);
            Console.WriteLine("Gioi tinh: " + this.Gioitinh);
            Console.WriteLine("So cmnd: " + this.Socmnd);
        }
    }
}
